package com.mzy.olddate.demo.init;//: initialization/InitialValues2.java
// Providing explicit initial values.

public class InitialValues2 {
  boolean bool = true;
  char ch = 'x';
  byte b = 47;
  short s = 0xff;
  int i = 999;
  long lng = 1;
  float f = 3.14f;
  double d = 3.14159;
  void printInitialValues() {
    System.out.println("Data type      Initial value"+"  数据类型初始化");
    System.out.println("boolean        " + bool);
    System.out.println("char           [" + ch + "]");  // 空串
    System.out.println("byte           " + b);
    System.out.println("short          " + s);
    System.out.println("int            " + i);
    System.out.println("long           " + lng);
    System.out.println("float          " + f);
    System.out.println("double         " + d);

  }
} ///:~
